package StructuralPattern.CompositePattern;

// Leaf
class File extends FileSystemComponent {
    private String name;

    public File(String name) {
        this.name = name;
    }

    @Override
    void showDetails() {
        System.out.println("文件: " + name);
    }
}